<!DOCTYPE html>
<html>
<head>
    <title>会员注册/绑定</title>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
    <link href="<%= global.config.path.publicPath %>/custom/officialAccount/css/officalCommon.css" rel="stylesheet">
    <link href="<%= global.config.path.publicPath %><%= body.stylePath %>" rel="stylesheet">
    <style>
        button.weui-vcode-btn {
            background-color: transparent;
            border-bottom: 0 none;
            border-right: 0 none;
            border-top: 0 none;
            outline: 0 none;
        }

        .weui-vcode-btn {
            border-left: 1px solid #e5e5e5;
            color: #3cc51f;
            display: inline-block;
            font-size: 17px;
            padding: 0 0.6em 0 0.7em;
        }

        .weui-vcode-btn, .weui-vcode-img {
            margin-left: 5px;
            vertical-align: middle;
        }

        .weui_cells {
            margin-top: 10px;
        }

        .content-padded {
            padding: 15px;
            padding-top: 70px;
        }
        body{
            background-color: #FBF9FE;
        }

    </style>

</head>
<body ontouchstart>

<div class="weui-row box-title">
    <a class="weui-col-20 header_block header_left" style="background-size: 66%;"
       href="#">
    </a>
    <a class="weui-col-60 header_block header_center"
       href="<%= body.linkPath %>/?openId=<%= userData.openid %>&orgCode=<%= body.orgCode %>"></a>
    <a class="weui-col-20 header_block header_right" style="background-size: 60%;" href="javascript:void(0);"></a>
</div>

    <div id="login" class="content-padded">


        <div class="sel_border">
            选择注册类型
        </div>
        <div style="padding: 10px;text-align: center;font-size: 0.7rem;">
            温馨提示：已有实体卡选择绑定，否则选择注册！
        </div>

        <a class="sel_btn"  id="goRegister" href="javascript:void(0)" >注册会员卡</a>
        <a class="sel_btn"  id="goBind" href="javascript:void(0)" >绑定会员卡</a>

    </div>

<% include common/footer.ejs %>

<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?d13328b5db725a57a4babbcacdd4c38d";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    $('#goRegister').click(function () {
        console.log(contextData.contextPath + "/view/register?orgCode=<%= body.orgCode %>&publicId=<%= body.publicId %>&gId=<%= body.gId %>&brand=<%= body.brand %>&openId=" + contextData.body.openId);
        window.location.href = "<%=global.config.path.contextPath%>/view/register?orgCode=<%= body.orgCode %>&publicId=<%=body.publicId%>&gId=<%=body.gId%>&brand=<%=body.brand||'tgp'%>&openid="+contextData.body.openId||contextData.data.openId
    });
    $('#goBind').click(function () {
        window.location.href = "<%=global.config.path.contextPath%>/view/bind?orgCode=<%= body.orgCode %>&publicId=<%=body.publicId%>&gId=<%=body.gId%>&brand=<%=body.brand||'tgp'%>&openid="+contextData.body.openId||contextData.data.openId
    })


</script>

</body>
</html>
